package com.example.shengyin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 在线评测对象 d_appoint
 * 
 * @author ruoyi
 * @date 2023-07-31
 */
@Data
@ApiModel("预约类")
public class Appoint
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号,不用填")
    private Long id;

    /** 手机号 */
    @ApiModelProperty("手机号")
    private String phone;

    /** 用户号 */
    @ApiModelProperty("用户号")
    private Long userid;

    /** 门店地址 */
    @ApiModelProperty("门店地址")
    private String addrbranch;

    /** 症状描述 */
    @NotNull(message = "症状描述不能为空")
    @ApiModelProperty("症状描述")
    private String courseof;

    /** 时间 */
    @ApiModelProperty("预约时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private Date posttime;

    /** 姓名 */
    @ApiModelProperty("姓名")
    private String uname;
    /** 备注 */
    @ApiModelProperty("备注")
    private String remark;

    @Override
    public String toString() {
        return "Appoint{" +
                "id='" + id + '\'' +
                ", phone='" + phone + '\'' +
                ", userid='" + userid + '\'' +
                ", addrbranch='" + addrbranch + '\'' +
                ", courseof='" + courseof + '\'' +
                ", posttime=" + posttime +
                ", uname='" + uname + '\'' +
                ", remarkl='" + remark + '\'' +
                '}';
    }
}
